#include "app_mqtt.h"
#include "log/log.h"
#include "unistd.h"

int handle_cb(char* data, int len)
{
    log_info("处理接收数据：%s, 长度：%d", data, len);
    return 0;
}
int main(int argc, char *argv[])
{
    app_mqtt_init();

    app_mqtt_registerRecvCallback(handle_cb);

    app_mqtt_send("hello", 5);

    sleep(50);

    app_mqtt_close();

    return 0;
}